package com.iflytek.exam.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.iflytek.common.annotation.Excel;
import com.iflytek.common.core.domain.BaseEntity;

/**
 * 批改试卷对象 tb_exam_grade
 *
 * @author KK
 * @date 2024-07-09
 */
public class CheckExam extends BaseEntity {
    //实际为tb_exam_grade表
    private static final long serialVersionUID = 1L;

    /**
     * 成绩id
     */
    private Long id;

    /**
     * 学生id
     */
    @Excel(name = "学生id")
    private Long userId;

    /**
     * 试卷id
     */
    @Excel(name = "试卷id")
    private Long examId;

    /**
     * 单选总分
     */
    private Long singleTotalScore;

    /**
     * 多选总分
     */
    private Long multipleTotalScore;

    /**
     * 判断总分
     */
    private Long judgeTotalScore;

    /**
     * 简答总分
     */
    private Long shortAnswerTotalScore;

    /**
     * 试卷总分
     */
    @Excel(name = "试卷总分")
    private Long totalScore;

    /**
     * 是否通过
     */
    @Excel(name = "是否通过")
    private Integer isPass;

    /**
     * 阅卷状态
     */
    @Excel(name = "阅卷状态")
    private Integer status;

    /**
     * 考试用时（分钟）
     */
    @Excel(name = "考试用时", readConverterExp = "分=钟")
    private Integer time;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setExamId(Long examId) {
        this.examId = examId;
    }

    public Long getExamId() {
        return examId;
    }

    public void setSingleTotalScore(Long singleTotalScore) {
        this.singleTotalScore = singleTotalScore;
    }

    public Long getSingleTotalScore() {
        return singleTotalScore;
    }

    public void setMultipleTotalScore(Long multipleTotalScore) {
        this.multipleTotalScore = multipleTotalScore;
    }

    public Long getMultipleTotalScore() {
        return multipleTotalScore;
    }

    public void setJudgeTotalScore(Long judgeTotalScore) {
        this.judgeTotalScore = judgeTotalScore;
    }

    public Long getJudgeTotalScore() {
        return judgeTotalScore;
    }

    public void setShortAnswerTotalScore(Long shortAnswerTotalScore) {
        this.shortAnswerTotalScore = shortAnswerTotalScore;
    }

    public Long getShortAnswerTotalScore() {
        return shortAnswerTotalScore;
    }

    public void setTotalScore(Long totalScore) {
        this.totalScore = totalScore;
    }

    public Long getTotalScore() {
        return totalScore;
    }

    public void setIsPass(Integer isPass) {
        this.isPass = isPass;
    }

    public Integer getIsPass() {
        return isPass;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getStatus() {
        return status;
    }

    public void setTime(Integer time) {
        this.time = time;
    }

    public Integer getTime() {
        return time;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("examId", getExamId())
                .append("singleTotalScore", getSingleTotalScore())
                .append("multipleTotalScore", getMultipleTotalScore())
                .append("judgeTotalScore", getJudgeTotalScore())
                .append("shortAnswerTotalScore", getShortAnswerTotalScore())
                .append("totalScore", getTotalScore())
                .append("isPass", getIsPass())
                .append("status", getStatus())
                .append("createTime", getCreateTime())
                .append("time", getTime())
                .toString();
    }
}
